import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/recommend_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/recommend_entity.g.dart';

@JsonSerializable()
class RecommendEntity {
	late int code;
	late String msg;
	late List<RecommendData> data;

	RecommendEntity();

	factory RecommendEntity.fromJson(Map<String, dynamic> json) => $RecommendEntityFromJson(json);

	Map<String, dynamic> toJson() => $RecommendEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RecommendData {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;
	late bool plant;

	RecommendData();

	factory RecommendData.fromJson(Map<String, dynamic> json) => $RecommendDataFromJson(json);

	Map<String, dynamic> toJson() => $RecommendDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}